<template>
    <!--建档资料维护模块 其他审核页面-->
    <div class="baseInfoPage">
        <!-- 表单   -->
        <el-form :rules="rules" ref="otherexam" label-width="160px" class="search_container">
                <el-row>
                    <el-col :span="8" class="common-box">
                        <el-col :span="13" class="common-lab">
                             <label class="labelName">复核提交核保</label>
                        </el-col>
                        <el-col :span="11">
                            <el-select :disabled="flag =='N'"  v-model="otherexam.isReferUw"  placeholder="" clearable>
                                <el-option
                                    v-for="item in isReferUw"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value">
                                </el-option>
                            </el-select>
                        </el-col>
                    </el-col>
                    <el-col :span="8" class="common-box">
                        <el-col :span="13" class="common-lab">
                             <label class="labelName">投保人建客Error</label>
                        </el-col>
                         <el-col :span="11">
                            <el-select :disabled="flag =='N'"  v-model="otherexam.isApplBcErr"  placeholder="" clearable>
                                <el-option
                                    v-for="item in isApplBcErr"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value">
                                </el-option>
                            </el-select>
                         </el-col>
                    </el-col>
                    <el-col :span="8" class="common-box">
                        <el-col :span="13" class="common-lab">
                             <label class="labelName">被保人建客Error</label>
                        </el-col>
                         <el-col :span="11">
                            <el-select :disabled="flag =='N'"  v-model="otherexam.isInsuBcErr"  placeholder="" clearable>
                                <el-option
                                    v-for="item in isInsuBcErr"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value">
                                </el-option>
                            </el-select>
                         </el-col>
                    </el-col>
                    <el-col :span="8" class="common-box">
                        <el-col :span="13" class="common-lab">
                             <label class="labelName">受益人建客Error</label>
                        </el-col>
                        <el-col :span="11">
                            <el-select  :disabled="flag =='N'" v-model="otherexam.isBnyBcErr"  placeholder="" clearable>
                                <el-option
                                    v-for="item in isBnyBcErr"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value">
                                </el-option>
                            </el-select>
                         </el-col>
                    </el-col>
                    <el-col :span="8" class="common-box">
                        <el-col :span="13" class="common-lab">
                             <label class="labelName">特殊客户标识</label>
                        </el-col>
                        <el-col :span="11">
                            <el-select :disabled="flag =='N'"  v-model="otherexam.isSpecCusSign"  placeholder="" clearable>
                                <el-option label="" value="" />
                                <el-option
                                    v-for="item in isSpecCusSignList"
                                    :key="item.code"
                                    :label="item.codeName"
                                    :value="item.code">
                                </el-option>
                            </el-select>
                         </el-col>
                    </el-col>
                    <el-col :span="8" class="common-box">
                        <el-col :span="13" class="common-lab">
                            <label class="labelName">外资银行标志</label>
                        </el-col>
                       <el-col :span="11">
                            <el-select :disabled="flag =='N'"  v-model="otherexam.bankCode"  placeholder="" clearable>
                                <el-option label="" value="" />
                                <el-option
                                    v-for="item in bankcodeList"
                                    :key="item.citycode"
                                    :label="item.citydesc"
                                    :value="item.citycode">
                                </el-option>
                            </el-select>
                        </el-col>
                    </el-col>
                    <el-col :span="8" class="common-box">
                        <el-col :span="13" class="common-lab">
                            <label class="labelName">投保人是否同意赠送PMA</label>
                        </el-col>
                         <el-col :span="11">
                            <el-select :disabled="flag =='N'"  v-model="euaa.flag04"  placeholder="" clearable>
                                <el-option
                                    v-for="item in flag04"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value">
                                </el-option>
                            </el-select>
                         </el-col>
                    </el-col>
                    <el-col :span="8" class="common-box">
                        <el-col :span="13" class="common-lab">
                            <label class="labelName">信托保单标识</label>
                        </el-col>
                        <el-col :span="11">
                            <el-select  :disabled="flag =='N'" v-model="otherexam.istrustPlySign"  placeholder="" clearable>
                                <el-option
                                    v-for="item in isTrustPlySign"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value">
                                </el-option>
                            </el-select>
                         </el-col>
                    </el-col>
                    <el-col :span="8" class="common-box">
                        <el-col :span="13" class="common-lab">
                             <label class="labelName">委托人信息是否正确</label>
                        </el-col>
                        <el-col :span="11">
                            <el-select :disabled="flag =='N'"  v-model="otherexam.isClientRight" placeholder="" clearable>
                                <el-option
                                    v-for="item in isClientRight"
                                    :key="item.value"
                                    :label="item.label"
                                    :value="item.value">
                                </el-option>
                            </el-select>
                        </el-col>
                    </el-col>
					<el-col :span="8" class="common-box">
					    <el-col :span="13" class="common-lab">
					         <label class="labelName">保险费率调整通知方式</label>
					    </el-col>
					    <el-col :span="11">
					        <el-select :disabled="flag =='N'"  v-model="otherexam.noticeOfPrem" placeholder="" clearable>
					            <el-option
					                v-for="item in noticeOfPrems"
					                :key="item.value"
					                :label="item.label"
					                :value="item.value">
					            </el-option>
					        </el-select>
					    </el-col>
					</el-col>
                    <el-col :span="8" class="common-box">
                        <el-col :span="13" class="common-lab">
                            <label class="labelName">被保人二建客Error</label>
                        </el-col>
                        <el-col :span="11">
                            <el-select :disabled="flag =='N'"  v-model="otherexam.isSecInsuBcErr"  placeholder="" clearable>
                                <el-option
                                        v-for="item in isSecInsuBcErr"
                                        :key="item.value"
                                        :label="item.label"
                                        :value="item.value">
                                </el-option>
                            </el-select>
                        </el-col>
                    </el-col>
                </el-row>
        </el-form>
    </div>
</template>
<script>
import { queryForeignBankList,queryPvbList } from "@/api/policyRecord/materialsMaintain/insurance";
    import constant from '@/utils/constant';
    export default {
        data(){
            return {
                value:'',
                isReferUw: [
                    {
                        value:'',
                        label:''
                     },
                     {
                        value:'Y',
                        label:'Y'
                     },{
                        value:'N',
                        label:'N'
                     }
                ],
                isApplBcErr: [
                    {
                        value:'',
                        label:''
                     },
                     {
                        value:'1',
                        label:'1'
                     },{
                        value:'2',
                        label:'2'
                     }
                ],
                isInsuBcErr: [
                    {
                        value:'',
                        label:''
                     },
                     {
                        value:'1',
                        label:'1'
                     },{
                        value:'2',
                        label:'2'
                     }
                ],
                isSecInsuBcErr: [
                    {
                        value:'',
                        label:''
                    },
                    {
                        value:'1',
                        label:'1'
                    },{
                        value:'2',
                        label:'2'
                    }
                ],
                isBnyBcErr: [
                    {
                        value:'',
                        label:''
                     },
                     {
                        value:'1',
                        label:'1'
                     },{
                        value:'2',
                        label:'2'
                     }
                ],
                isSpecCusSignList:[],
                bankcodeList:[],
                flag04:[
                    {
                        value:'',
                        label:''
                     },
                     {
                        value:'Y',
                        label:'Y'
                     }, {
                        value:'N',
                        label:'N'
                     }, {
                        value:'1',
                        label:'U'
                     }
                ],
                isTrustPlySign:[
                    {
                        value:'',
                        label:''
                     },
                     {
                        value:'1',
                        label:'1-信托投保人保'
                     },{
                        value:'2',
                        label:'2-信托保单'
                     }
                ],
                isClientRight:[
                    {
                        value:'',
                        label:''
                     },
                    {
                        value:'1',
                        label:'1-正确'
                     },{
                        value:'2',
                        label:'2-错误'
                     },{
                        value:'3',
                        label:'3-模糊不清'
                     },{
                        value:'4',
                        label:'4-影像不全或有误'
                     }
                ],
				noticeOfPrems:[
					{
					    value:'1',
					    label:'1-短信'
					 },{
					    value:'2',
					    label:'2-微信函'
					 },{
					    value:'3',
					    label:'3-短信+微信函'
					 }
				],
                otherexam: {},
                euaa: {},
                rules: {},
                insureDataForm: this.insureData,
            }
        },
        props:{
			flag:{
				type:String
			},
            insureData:{
                type: Object,
            }
        },
        mounted(){
            this.reloadInsureData(null);
            this.queryForeignBankList();
            this.queryPvbList();
        },
        methods: {
            reloadInsureData(insureData){
                if(insureData != null){
                    this.insureDataForm = insureData;
                }
                this.otherexam = this.insureDataForm.otherexam;
                this.euaa = this.insureDataForm.euaa;
            },
            getInsureData(){
                return this.insureDataForm;
            },
            queryForeignBankList(){//外资银行标志列表
                let para = {};
                queryForeignBankList(para).then(res => {
                    if(res.resultCode == constant.SUCCESS){  
                        this.bankcodeList = res.data;
                    }
                }).catch(err =>{
                    console.log(err);
                })
            },
            queryPvbList(){//特殊客户标识列表
                let para = {};
                queryPvbList(para).then(res => {
                    if(res.resultCode == constant.SUCCESS){  
                        this.isSpecCusSignList = res.data;
                    }
                }).catch(err =>{
                    console.log(err);
                })
            }
            
        },
        watch:{
           
        }
    }
</script>
<style lang="less" scoped>
.baseInfoPage{
    .common-box{
        padding-bottom: 15px;
    }
    .common-lab{
        line-height:normal!important;
        text-align: right;
        .labelName{
            text-align: right;
        }
    }
}
</style>